using System;
using System.Collections.Generic;
using System.Linq;

class Program
{
    static void Main()
    {
        Random rand = new Random();
        List<int> numbers = Enumerable.Range(0, 100).Select(i => rand.Next(0, 100)).ToList();

        var sortedNumbers = numbers.OrderByDescending(x => x).ToList();

        int sum = sortedNumbers.Sum();

        double average = sortedNumbers.Average();

        Console.WriteLine("Sorted numbers:");
        foreach (int number in sortedNumbers)
        {
            Console.Write(number + " ");
        }
        Console.WriteLine();
        Console.WriteLine("Sum: " + sum);
        Console.WriteLine("Average: " + average);
    }
}
